package cn.zs.supply.common.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PatternUtils {

	
	public static String regMatch(String withinText,String delPrefix,String regString) {
        String code = "";
        Pattern pattern = Pattern.compile(delPrefix+regString);
        Matcher matcher = pattern.matcher(withinText);
            while (matcher.find()) {
                code = matcher.group(0);
            }
        
        return code.replace(delPrefix, "");
    }
}
